﻿using LPLS.Commons.DBModule;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LPLS.DBEntities.ConfigModels.DataCollectionConfigModule.DataCollectionType.DB
{

    /// <summary>
    /// 数据库表配置  数据采集源为数据库
    /// </summary>
    [DatabaseKey(DatabaseEnum.CollectionConfigDB)]
    [SugarTable(nameof(DBTableConfig))]
    public  class DBTableConfig
    {
        public int DBTableConfigID { get; set; }
      
        public string TableName { get; set; }

        public int DBCollectionID { get; set; }

        [Navigate(NavigateType.OneToMany, nameof(DBVarColumnConfig.TableID))]
        public List<DBVarColumnConfig> DBVarColumnConfigs { get; set; }

    }
}
